//
// Created by Administrator on 2021/8/17.
//

#ifndef TEST_UDPSERVER_H
#define TEST_UDPSERVER_H

#include <QObject>
#include <QUdpSocket>
#include <QHostInfo>
#include <QHostAddress>

#include "window.h"



class udpServer : QObject {
    Q_OBJECT

public:
    udpServer(QObject *p = nullptr);
    ~udpServer();

    window *w;

private slots:
    void receive();

private:
    QUdpSocket *udpSocket;
};


#endif //TEST_UDPSERVER_H
